const path = require('path');
const { generate } = require('../dist/index.cjs');

function resolve(...dir) {
    return path.resolve(__dirname, '..', ...dir);
}

generate({
    input: resolve('src', 'index.ts'),
    output: resolve('dist', 'typings'),
    fileName: 'index.d.ts',
    autoClear: true,
});
